package com.phonemap;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.commons.fileupload.FileUploadException;


@SuppressWarnings("serial")
public class UploadFileServlet extends BaseServlet {
	
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        try {
            processRequest(request, response);
        } catch (FileUploadException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }
     protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, FileUploadException {

         Properties properties = new Properties();
         properties.load(new FileInputStream("C:\\Users\\IBM_ADMIN\\workspace\\XMLGenerator\\FTFXmlGenerator\\ftf.properties"));
//         String imageDir = properties.getProperty("images");
//         HttpSession session = request.getSession(true);
//         String version = session.getAttribute("frameworkVersion").toString();
         System.out.println(request.getParameter("currPackage"));
         System.out.println(request.getParameter("currClass"));
     }

}
